package com.zcz.authentication.service.impl;

import com.zcz.authentication.bean.User;
import com.zcz.authentication.mapper.UserMapper;
import com.zcz.authentication.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class UserServiceImpl implements UserService {
	@Autowired
	private UserMapper userMapper;
	
	
	@Override
	public User findByName (String name, String password) {
		User findByName = userMapper.findByName(name, password);
	return findByName;	
	}


	@Override
	public User findById(Integer id) {
		User findById = userMapper.findById(id);
		return findById;
	}


	
}
